using JTZY.Model.Batch;
using JTZY.Model.Batch.Dto;

namespace JTZY.Model.Batch
{
    /// <summary>
    /// 批量发货
    /// </summary>
    [SugarTable("batchship")]
    public class Batchship
    {
        /// <summary>
        /// 单号 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
        public string OrderId { get; set; }

        /// <summary>
        /// 数量 
        /// </summary>
        public int Nums { get; set; }

        /// <summary>
        /// 状态 
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// CreateTime 
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// UpdateTime 
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        [Navigate(NavigateType.OneToMany, nameof(Batchshipitem.OrderId), nameof(OrderId))] //自定义关系映射
        public List<Batchshipitem> BatchshipitemNav { get; set; }

        [SugarColumn(IsIgnore =true)]
        public List<Batchshipdetail> BatchshipdeailNav { get; set; }

        /// <summary>
        /// 订单所属用户
        /// </summary>
        public long UserId { get; set; }
    }
}